package threadcoreknowledge.createthreads;

/**
 * 1.实现多线程的两种方式
 * @ClassName RunnableStyle
 *  用 Runnable 方式创建线程
 * @Author wushaopei
 * @Date 2021/2/24 23:08
 * @Version 1.0
 */
public class RunnableStyle implements Runnable {

    public static void main(String[] args) {
        Thread thread = new Thread(new RunnableStyle());
        thread.start();
    }

    @Override
    public void run() {
        System.out.println("用Runnable方法实现线程");
    }
}
